@extends('layouts.normal')
@section('self-style')
    <link rel="stylesheet" href="/package/plugins/bootstrap-table/bootstrap-table.min.css">
    <link rel="stylesheet" href="/package/plugins/daterangepicker/daterangepicker-bs3.css">
@endsection
@section('local-style')
    <style type="text/css">
        .bootstrap-table .fixed-table-toolbar button {color: inherit;}
        .pagination-detail .btn-group button {color: inherit;}
        table .btn {margin-left: 10px;}
        .modal input[type="radio"] {margin-left: 20px;margin-right: 10px;}
        .modal .modal-footer button {margin-left: 40px;margin-right: 40px;}
    </style>
    <script type="text/javascript">
        var program_id = {!! $program_id !!};
    </script>
@endsection
@section('menu')
    @include("manager.layouts.menu")
@endsection

@section("header")
    <section class="content-header">
        <h4>
            项目管理
            <b>/</b>
            申请记录
        </h4>
    </section>
@endsection

@section('content')
    <section class="content">
        <div class="row">
            <!-- /.col -->
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <div class="col-sm-12">
                            <h3 class="col-sm-2 box-title"></h3>
                            <div class="col-sm-9">
                                <a class="btn btn-default pull-right" href="javascript:history.back();">返回</a>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table id="user-table" data-height="600"></table>
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
@endsection


@section('modal')
    <div class="modal fade" id="change-status-dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title"></h4>
                </div>
                <div class="modal-body">
                    <div class="form-horizontal m-t">
                        <div class="form-group">
                            <label class="control-label col-sm-3"></label>
                            <div class="col-sm-9">
                                <input type="hidden" class="program-user-id" />
                                <input type="hidden" class="program-user-status" />
                                <span class="change-status-tip"></span>
                            </div>
                        </div>
                        <div class="form-group set-select-time hidden">
                            <label class="control-label col-sm-3">设置选房时间</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        <i class="fa fa-calendar"></i>
                                    </div>
                                    <input type="text" class="form-control pull-right start-end-time" disabled="disabled">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="form-group">
                        <label class="control-label col-sm-3"></label>
                        <div class="col-sm-6">
                            <button type="button" class="btn btn-primary pull-left btn-save">确认</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
@endsection



@section('self-script')
    <script src="/package/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="/package/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/package/plugins/daterangepicker/moment.min.js"></script>
    <script src="/package/plugins/daterangepicker/daterangepicker.js"></script>
    <script type="text/javascript" src="/js/manager/program-user.js?v={{ time() }}"></script>
@endsection
@section('local-script')
    <script type="text/javascript">
        $('.start-end-time').daterangepicker({
            "locale" : {
                "separator": " -222 ",
                "applyLabel": "确定",
                "cancelLabel": "取消",
                "fromLabel": "起始时间",
                "toLabel": "结束时间",
                "customRangeLabel": "自定义",
                "weekLabel": "W",
                "daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"],
                "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
                "firstDay": 1
            },
            "timePicker" : true,
            "timePicker12Hour" : false,
            "timePickerIncrement" : 1,
            "format" : "YYYY-MM-DD HH:mm",
            "separator" : " ~ "
        });
    </script>
@endsection